﻿using RepositoryEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IRepositoryBll
{
    public interface ICategoryBll
    {
        /// <summary>
        /// 添加类型
        /// </summary>
        /// <param name="category"></param>
        /// <returns></returns>
        bool AddCategory(Category category);

        /// <summary>
        /// 获取集合、分页
        /// </summary>
        /// <param name="page"></param>
        /// <param name="limit"></param>
        /// <param name="count"></param>
        /// <param name="categoryName"></param>
        /// <returns></returns>
        object GetCategoryListByPage(int page, int limit, out int count, string categoryName);

        /// <summary>
        /// 获取类型ID集合
        /// </summary>
        /// <param name="categoryId"></param>
        /// <returns></returns>
        Category GetCategory(string categoryId);

        /// <summary>
        /// 更新类型信息
        /// </summary>
        /// <param name="ID"></param>
        /// <param name="CategoryName"></param>
        /// <param name="Description"></param>
        /// <returns></returns>
        bool UpdateCategory(string ID ,string CategoryName,string Description);

        /// <summary>
        /// 删除类型ID集合
        /// </summary>
        /// <param name="categoryId"></param>
        /// <returns></returns>
        bool DeleteCategory(string categoryId);

        /// <summary>
        /// 获取类型名称下拉选数据
        /// </summary>
        /// <returns></returns>
        object GetCategoryOptions();
    }
}
